﻿/*=========================================================================
 * AUTH: Vincent Breton
 * DESC: Help Screen
 * REF: Stellar Siege Project 2010
 *=========================================================================*/
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace RisingThreat
{

    class HelpScreen:MenuScreen
    {
        SpriteFont font;
        int width;
        int height;
        Texture2D controller;
        Vector2 imagePosition, textPosition;
        String helpText;
//        float scaleFactor;

        public HelpScreen(ContentManager content, EventHandler gameEvent, GraphicsDeviceManager graphics)
            : base(content, gameEvent, graphics)
        {
            String[] optionsList = new String[]{"Back to Main Menu"};
            base.setOptions(optionsList);

            font = content.Load<SpriteFont>("fonts/Cutscene");
            width = graphics.PreferredBackBufferWidth;
            height = graphics.PreferredBackBufferHeight;

            controller = content.Load<Texture2D>("textures/controller");
            imagePosition = new Vector2(((width/2) - (controller.Width/2)),((base.titleFont.MeasureString(base.title).Y)+(base.titlePos.Y)+20));
            textPosition = new Vector2(imagePosition.X, imagePosition.Y + 20);

            helpText = "WASD: Move \n\n" +
                       "Escape Key: Pause Menu \n\n" +
                       "F Key: Shoot  \n\n"+
                       "Q/E Key: Rotate";
                      
        }


        public override void Update(GameTime gametime)
        {
            base.Update(gametime);
        }

        public override void Draw(SpriteBatch batch)
        {


            //Draw Title
            batch.DrawString(titleFont, title, titlePos, Color.White);

            batch.DrawString(font, helpText, textPosition, Color.White);

            //Controller
            //batch.Draw(controller, imagePosition, null, Color.White, 0, Vector2.Zero, Vector2.One, SpriteEffects.None, 0);
            //Draw Menu

            batch.DrawString(menuFont, options[0], new Vector2(width/2 -((menuFont.MeasureString(options[0]).X)/2),height - 100), Color.Yellow);
                

            
        }
    }
}
